/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */
#ifndef UART_H
#define UART_H
int serial_init(int *fcom, char *com, int baudrate);
int serial_set_rts(int fcom, int level);
int serial_clear_buffer(int fcom);
int uart_win_write(uint8_t *data, uint16_t len);
int uart_win_read(uint8_t *data, uint16_t len);
int uart_win_set_rts(int fcom, int level);
int uart_win_clear();
int uart_win_init(char *port_name, uint32_t baudrate);
#endif
